package com.hqq.other.lazy_loading;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * Heavy Object
 * Created by heqianqian on 2017/9/4.
 */
public class Heavy {

    private static final Logger LOGGER = LoggerFactory.getLogger(Heavy.class);

    public Heavy() {
        LOGGER.info("Creating Heavy ...");
        try {
            Thread.sleep(1000);
        } catch (InterruptedException e) {
            LOGGER.error("Exception caught.", e);
        }
        LOGGER.info("... Heavy created");
    }
}
